package com.xiaomei.manager.dao;

import java.util.List;

import com.xiaomei.manager.model.SysResource;
import com.xiaomei.manager.model.SysRole;

public interface SysRoleMapper {
    int deleteByPrimaryKey(Long id);

    int insert(SysRole record);

    int insertSelective(SysRole record);

    SysRole selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SysRole record);

    int updateByPrimaryKey(SysRole record);
    /**
     * 查询最近插入记录的ID编号
     * @return
     */
    Long selectLastInsertID();
    
    /**
     * 查询所有角色
     * @return
     */
    List<SysRole> selectAll();
    
    
}